﻿using System.ComponentModel.DataAnnotations;

namespace Traceability.Read.Api.Dto
{
    public class CommodityDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int CommodityId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public int CommodityNameId { get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string Cover { get; set; }
        /// <summary>
        /// 生产批次
        /// </summary>
        public string C_Times { get; set; }
        /// <summary>
        /// 保质期
        /// </summary>
        public string Time { get; set; }
        /// <summary>
        /// 生产许可证
        /// </summary>
        public string Permit { get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string Enterprise { get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public string Degree { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; } = DateTime.Now;
        /// <summary>
        /// 是否删除false否，true是
        /// </summary>
        public bool IsDelete { get; set; } = false;
        /// <summary>
        /// 图片外键
        /// </summary>
        public string ModuleId { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string ProductNameName { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
